import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../page/home'
import Article from '../page/article/article'

Vue.use(VueRouter)

  const routes = [
      {
        path: '/',
        name: 'Home',
        component: Home,
        children:[
          {
            path: 'aticle',
            name: 'Article',
            component: Article
          }
        ]
      }]

const router = new VueRouter({
  routes
})
export default router
